﻿namespace WMS6.Web
{
    using log4net;
    using System;

    public class SysLog : BasePage
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(SysLog));

        public static SysLog GetInstance()
        {
            return new SysLog();
        }

        public void LogError(Exception ex)
        {
            log.Error(ex.Message, ex);
        }

        public void LogError(Exception ex, string message)
        {
            log.Error(message, ex);
        }

        public void LogInfo(Exception ex)
        {
            log.Info(ex.Message, ex);
        }

        public void LogWarning(Exception ex)
        {
            log.Warn(ex.Message, ex);
        }
    }
}

